﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类CONST_DEFINE_WEB_CATEGORY
     ///</summary>
     public class CONST_DEFINE_WEB_CATEGORY
     {
         private int __ID=0 ;
         private string __CategoryName=string.Empty ;
         private string __Remark=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public CONST_DEFINE_WEB_CATEGORY()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("CategoryName",false);
             this.__Changed.Add("Remark",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__CategoryName =string.Empty;
             this.__Remark =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["CategoryName"] = false;
             this.__Changed["Remark"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[CategoryName]的数据
         /// </summary>
         public string CategoryName
         {
              set{ __CategoryName = value.Replace("'","’"); __Changed["CategoryName"] = true;}
              get{return __CategoryName;}
         }
         /// <summary>
         ///设置或获取类中的[Remark]的数据
         /// </summary>
         public string Remark
         {
              set{ __Remark = value.Replace("'","’"); __Changed["Remark"] = true;}
              get{return __Remark;}
         }
    }
}
